import request from "@/utils/request";

export function gethomePage(data){
  return request({
    url: `/typingKpm/homePage?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: "post"
  });
}

export function getRunChart(){
  return request({
    url: `/typingKpm/homePage/getRunChart`,
    method: "post"
  });
}

export function startTyping(){
  return request({
    url: `/typingKpm/startTyping`,
    method: "post",
  });
}

export function finishTyping(data){
  return request({
    url: `/typingKpm/finishTyping`,
    method: "post",
    data
  });
}

